forvalues y=1979/1992{
	gen intY`y' = `y'
	rename CURDATE_M_`y' intM`y'
}
foreach y of numlist 1993 1994(2)2016{
	rename CURDATE_Y_`y' intY`y'
	rename CURDATE_M_`y' intM`y'
}
reshape long intY intM, i(CASEID_1979) j(year)
